<%@page import="net.ko.kobject.KListObject"%>
<%@page import="net.ko.framework.KoHttp"%>
<%@page import="net.bo.KPlan" %>
<%@page import="net.bo.KAffectation" %>
<%@page import="net.bo.KFtester" %>
<%@page import="net.ko.framework.Ko" %>
<%@page import="net.ko.db.KDataBase" %>
<%@page import="net.ko.displays.KObjectDisplay" %>
<%@page import="net.ko.http.objects.KRequest" %>
<%@page import="net.ko.http.views.KPageList" %>
<%@page import="net.ko.kobject.KObject" %>
<%@page import="net.ko.utils.KString" %>
<%@page import="net.ko.framework.KoSession" %>

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<div id="divAvancement">
<%
Ko.ConstraintsDepth=2;
KDataBase db=Ko.kdatabase();
KListObject<KPlan> plans=KoSession.kloadMany(KPlan.class);
out.print("Nombre de plans : "+plans.count()+"<br>");


for (KPlan plan : plans) {
    out.print(plan.getLibelle()+" : <br>");
    
    KListObject<KAffectation> affectations=plan.getAffectations();
    for (KAffectation affectation : affectations){
    	out.print(" - "+affectation.getUtilisateur());
    	KListObject<KFtester> ftesters=affectation.getUtilisateur().getFtesters();
    	
    	for(KFtester ftester: ftesters){
    		/*if(ftester.isConforme()){
    			out.print(ftester.getFonction().getLibelle()+" : OK ");
    		}else{
    			out.print(ftester.getFonction().getLibelle()+" : X ");
    		}*/
    		out.print("fdsf");
    	}
    }
    out.print("<hr>");
    
  
}
%>
</div>
<%=KoHttp.kajaxIncludes(request)%>